package com.zhen.aikan.constant;

/**
 * @author LiJiaZhen
 * @date 2023/9/11 16:35
 */
public class ResultConstant {
    /**
     * 返回结果代码
     */
    public enum ResultEnum{
        ERROR(201,"数据获取失败"),SUCCESS(200,"数据获取成功");
        private final int code;
        private final String msg;

        ResultEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
